/**
 * 
 */
package nullby.omnia.model;

import nullby.common.model.BaseModel;

import org.json.JSONObject;

import android.os.Parcel;

/**
 * @author Sergey Bandysik
 * 
 */
public final class WordOfVoc extends BaseModel {
	private static final String PAT = "[\\{\\}\\[c\\]\\[i\\]\\[m\\]\\[m1\\]\\[m2\\]\\[p\\]\\[e\\]\\/]";

	private static final String TAG = WordOfVoc.class.getSimpleName();

	private String id;
	private String word;
	private String card;

	/**
	 * 
	 */
	public WordOfVoc(String id, String word, String card) {
		this.id = id;
		this.word = word.replaceAll(PAT, "");
		this.card = card.replaceAll(PAT, "");

	}

	public WordOfVoc(String id, String word) {
		this.id = id;
		this.word = word.replaceAll(PAT, "");
	}

	/**
	 * @param json
	 */
	public WordOfVoc(String json) {
		super(json);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param json
	 */
	public WordOfVoc(JSONObject json) {
		super(json);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param in
	 */
	public WordOfVoc(Parcel in) {
		super(in);
		// TODO Auto-generated constructor stub
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word.replaceAll(PAT, "");
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card.replaceAll(PAT, "");
	}

	@Override
	public String toString() {
		return word;
	}

}
